Skip to contentSkip to conversation

New: memory leak when drmModeRes is freed.

Bug 41373 [email protected] 2 participants 4 messages Sep 30, 2011 – Sep 24, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=41373

Summary: memory leak when drmModeRes is freed.
Product: DRI
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: medium
Component: libdrm
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=51822)
View: https://bugs.freedesktop.org/attachment.cgi?id=51822
Review: https://bugs.freedesktop.org/review?bug=41373&attachment=51822

Patch for fixing this bug.

The fsb, crtcs, connectors and encoders of drmModeRes are allocated by drmMalloc().
Before freeing drmModeRes, obviously these should be freed in drmModeFreeResources().

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 41373] memory leak when drmModeRes is freed.

https://bugs.freedesktop.org/show_bug.cgi?id=41373

--- Comment #1 from Boram Park <[email protected]> 2011-09-30 17:32:09 PDT --- Created an attachment (id=51824)
View: https://bugs.freedesktop.org/attachment.cgi?id=51824
Review: https://bugs.freedesktop.org/review?bug=41373&attachment=51824

another patch for memory leak

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

Memory leak of libdrm

Hello Chris Wilson.

git : git://anongit.freedesktop.org/git/mesa/drm
branch : master

I found some memory leaks in xf86drmMode.c.

When we call drmModeGetResources(), fbs, crtcs, connectors and encoders are newly allocated. But, drmModeFreeResources() doesn't free them. drmModeFreeProperty() also doesn't free blob_ids.

I reported it to bugzilla and attached two patch files.
- https://bugs.freedesktop.org/show_bug.cgi?id=41373

Could you review if it's a bug or not?

Many thanks
Boram.

#3 lore raw

[Bug 41373] memory leak when drmModeRes is freed.

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=41373

GitLab Migration User <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #2 from GitLab Migration User <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/drm/issues/5.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel